﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.5.2.min.js" type="text/javascript"></script>
    <link href="../css/jquery.loadmask.css" rel="stylesheet" type="text/css" />
    <script src="../js/ligerui.min.js" type="text/javascript"></script>
     <script src="../Js/json2.js" type="text/javascript"></script>
     <script src="../Js/jquery.loadmask.min.js" type="text/javascript"></script>
     <script src="../Js/conmon.js" type="text/javascript"></script>
    <title>创建手工模型</title>
    <style type="text/css">
        .Tab1
        {
	        background-image: url(../images/tcATabBack.gif);
	        color: #ffffff;
	        font-weight: bold;
	        cursor: hand;
	        border-top: solid 1px darkgray;
        }
        .Tab2
        {
	        background-image: url(.../images/tcHTabBack.gif);
	        color: #000000;
	        font-weight: bold;
	        cursor: hand;
	        border-top: solid 1px darkgray;
	        border-right: solid 1px darkgray;
	        border-left: solid 1px darkgray;
        }
        .Tab3
        {
	        background-color: #ffffff;
	        color: #000000;
	        font-weight: bold;
	        cursor: hand;
	        border-top: solid 1px darkgray;
	        border-right: solid 1px darkgray;
	        border-left: solid 1px darkgray;
        }    
</style>
    <script type="text/javascript">
        function TabMouseOver(obj, currentPage) {
            var activePage = $("#hfActivePage").val();
            if (currentPage != activePage)
                obj.className = "Tab2";
        }
        function TabMouseOut(obj, currentPage) {
            var activePage = $("#hfActivePage").val();
            if (currentPage != activePage)
                obj.className = "Tab3";
        }
        function TabClick(pageIndex, tableName) {
            $("#hfActivePage").val(pageIndex);
            for (var i = 1; i <= 6; i++) {
                if(pageIndex == i)
                    $("#Tab" + i).attr("class", "Tab1");
                else
                    $("#Tab" + i).attr("class", "Tab3");
            }
            $("table[type='TopicType']").each(function (i, item) {
                if (item.id == tableName)
                    $(item).css("display", "block");
                else
                    $(item).css("display", "none");
            });
        }
        var roleID = 0;
        var roleName = "";
        var areID = 0;
        var areRoleID=0;
        var chkAreRoleIDs = "";
        var chkAreRoleNames = "";
        var chkSameRole;
        $(function () {
            pWind = parent.window.parent.window.getWindow();
            if (pWind == null) {
                showErrorTip("参数错误！");
                closeRefresh(false, "");
            }
            roleID = pWind.$("#Rid").val();
            roleName = pWind.$("#roleName").val();
            areID = pWind.$("#Aid").val();
            areRoleID = pWind.$("#areRoleID").val();
            chkAreRoleIDs = pWind.$("#chkAreRoleIDs").val();
            chkAreRoleNames = pWind.$("#chkAreRoleNames").val();
            chkSameRole = pWind.chkSameRole;

            pWind.$("#Rid").val("0");
            pWind.$("#roleName").val("");
            pWind.$("#Aid").val("-1");
            pWind.$("#areRoleID").val("");
            pWind.$("#chkAreRoleIDs").val("");
            pWind.$("#chkAreRoleNames").val("");

            //如果是多选且选择的不是同一角色，则将roleid设置为-1,只显示公共题
            if (chkSameRole == false) {
                roleID = -1;
            }
            $("label[id^='lblAreRole']").each(function (i, item) { $(item).html(chkAreRoleIDs.length > 0 ? chkAreRoleNames : roleName); });
            $("#btnClose").click(function () { closeRefresh(false, ""); });

            $("#txtSingleScore").ligerSpinner({ width: 60, type: 'int' });
            $("#txtMultiScore").ligerSpinner({ width: 60, type: 'int' });
            $("#txtJudgeScore").ligerSpinner({ width: 60, type: 'int' });
            $("#txtFillBlankScore").ligerSpinner({ width: 60, type: 'int' });
            $("#txtQAScore").ligerSpinner({ width: 60, type: 'int' });
            $("#txtTypingScore").ligerSpinner({ width: 60, type: 'int' });

            $("#txtSingleScore").change(function () { ChangePerScore($(this)); });
            $("#txtMultiScore").change(function () { ChangePerScore($(this)); });
            $("#txtJudgeScore").change(function () { ChangePerScore($(this)); });
            $("#txtFillBlankScore").change(function () { ChangePerScore($(this)); });
            $("#txtQAScore").change(function () { ChangePerScore($(this)); });
            $("#txtTypingScore").change(function () { ChangePerScore($(this)); });

            InitGrid();
        });

        //检查每题的分数
        function ChangePerScore(obj) {
            var score = parseInt(obj.val());
            if (score <= 0) {
                showErrorTip("每题的分数必须0分");
                obj.val(1);
            }
            CalcuteScore();
        }

        function InitGrid() {
            //单选题
            $SingleGrid = $("#divSingle").ligerGrid({
                checkbox: true,
                columns: [
                { display: '序号', align: 'center', width: 40, type: 'int', isSort: false, render: function (item, i) { i = i + 1; return i; } },
                { display: '题目', name: 'T_TITLE', align: 'left', width: 400 },
                { display: '题型', name: 'R_NAME', width: 120 },
                { display: '日期', name: 'T_DATE', type: 'date', dateFormat: "yyyy-MM-dd", width: 100 }
                ],
                parms: [
                    { name: 'typeID', value: 1 }, { name: 'roleID', value: roleID}],
                dataAction: 'server', pageSize: 9,
                url: '../WebServer/ModelManage.ashx?Action=ModelRoleTopicList&rnd=' + Math.random().toString(),
                sortName: 'T_ID',
                width: '96%', height: '295', isChecked: IsChecked_Single, onCheckRow: OnCheckRow_Single,
                onAfterShowData: function (grid) {
                    $(".l-grid-hd-cell-checkbox", grid.gridheader).removeClass("l-grid-hd-cell-checkbox");
                }
            });
            //多选题
            $MultiGrid = $("#divMulti").ligerGrid({
                checkbox: true,
                columns: [
                { display: '序号', align: 'center', width: 40, type: 'int', isSort: false, render: function (item, i) { i = i + 1; return i; } },
                { display: '题目', name: 'T_TITLE', align: 'left', width: 400 },
                { display: '题型', name: 'R_NAME', width: 120 },
                { display: '日期', name: 'T_DATE', type: 'date', dateFormat: "yyyy-MM-dd", width: 100 }
                ],
                parms: [
                    { name: 'typeID', value: 2 }, { name: 'roleID', value: roleID}],
                dataAction: 'server', pageSize: 9,
                url: '../WebServer/ModelManage.ashx?Action=ModelRoleTopicList&rnd=' + Math.random().toString(),
                sortName: 'T_ID',
                width: '96%', height: '295', isChecked: IsChecked_Multi, onCheckRow: OnCheckRow_Multi,
                onAfterShowData: function (grid) {
                    $(".l-grid-hd-cell-checkbox", grid.gridheader).removeClass("l-grid-hd-cell-checkbox");
                }
            });
            //判断题
            $JudgeGrid = $("#divJudge").ligerGrid({
                checkbox: true,
                columns: [
                { display: '序号', align: 'center', width: 40, type: 'int', isSort: false, render: function (item, i) { i = i + 1; return i; } },
                { display: '题目', name: 'T_TITLE', align: 'left', width: 400 },
                { display: '题型', name: 'R_NAME', width: 120 },
                { display: '日期', name: 'T_DATE', type: 'date', dateFormat: "yyyy-MM-dd", width: 100 }
                ],
                parms: [
                    { name: 'typeID', value: 3 }, { name: 'roleID', value: roleID}],
                dataAction: 'server', pageSize: 9,
                url: '../WebServer/ModelManage.ashx?Action=ModelRoleTopicList&rnd=' + Math.random().toString(),
                sortName: 'T_ID',
                width: '96%', height: '295', isChecked: IsChecked_Judge, onCheckRow: OnCheckRow_Judge,
                onAfterShowData: function (grid) {
                    $(".l-grid-hd-cell-checkbox", grid.gridheader).removeClass("l-grid-hd-cell-checkbox");
                }
            });
            //填空题
            $FillBlankGrid = $("#divFillBlank").ligerGrid({
                checkbox: true,
                columns: [
                { display: '序号', align: 'center', width: 40, type: 'int', isSort: false, render: function (item, i) { i = i + 1; return i; } },
                { display: '题目', name: 'T_TITLE', align: 'left', width: 400 },
                { display: '题型', name: 'R_NAME', width: 120 },
                { display: '日期', name: 'T_DATE', type: 'date', dateFormat: "yyyy-MM-dd", width: 100 }
                ],
                parms: [
                    { name: 'typeID', value: 4 }, { name: 'roleID', value: roleID}],
                dataAction: 'server', pageSize: 9,
                url: '../WebServer/ModelManage.ashx?Action=ModelRoleTopicList&rnd=' + Math.random().toString(),
                sortName: 'T_ID',
                width: '96%', height: '295', isChecked: IsChecked_FillBlank, onCheckRow: OnCheckRow_FillBlank,
                onAfterShowData: function (grid) {
                    $(".l-grid-hd-cell-checkbox", grid.gridheader).removeClass("l-grid-hd-cell-checkbox");
                }
            });
            //问答题
            $QAGrid = $("#divQA").ligerGrid({
                checkbox: true,
                columns: [
                { display: '序号', align: 'center', width: 40, type: 'int', isSort: false, render: function (item, i) { i = i + 1; return i; } },
                { display: '题目', name: 'T_TITLE', align: 'left', width: 400 },
                { display: '题型', name: 'R_NAME', width: 120 },
                { display: '日期', name: 'T_DATE', type: 'date', dateFormat: "yyyy-MM-dd", width: 100 }
                ],
                parms: [
                    { name: 'typeID', value: 5 }, { name: 'roleID', value: roleID}],
                dataAction: 'server', pageSize: 9,
                url: '../WebServer/ModelManage.ashx?Action=ModelRoleTopicList&rnd=' + Math.random().toString(),
                sortName: 'T_ID',
                width: '96%', height: '295', isChecked: IsChecked_QA, onCheckRow: OnCheckRow_QA,
                onAfterShowData: function (grid) {
                    $(".l-grid-hd-cell-checkbox", grid.gridheader).removeClass("l-grid-hd-cell-checkbox");
                }
            });
            //打字题
            $TypingGrid = $("#divTyping").ligerGrid({
                checkbox: true,
                columns: [
                { display: '序号', align: 'center', width: 40, type: 'int', isSort: false, render: function (item, i) { i = i + 1; return i; } },
                { display: '题目', name: 'T_TITLE', align: 'left', width: 400 },
                { display: '题型', name: 'R_NAME', width: 120 },
                { display: '日期', name: 'T_DATE', type: 'date', dateFormat: "yyyy-MM-dd", width: 100 }
                ],
                parms: [
                    { name: 'typeID', value: 6 }, { name: 'roleID', value: roleID}],
                dataAction: 'server', pageSize: 9,
                url: '../WebServer/ModelManage.ashx?Action=ModelRoleTopicList&rnd=' + Math.random().toString(),
                sortName: 'T_ID',
                width: '96%', height: '295', isChecked: IsChecked_Typing, onCheckRow: OnCheckRow_Typing,
                onAfterShowData: function (grid) {
                    $(".l-grid-hd-cell-checkbox", grid.gridheader).removeClass("l-grid-hd-cell-checkbox");
                }
            });
        }



        var _SingleList = ",";
        var _MultiList = ",";
        var _JudgeList = ",";
        var _FillBlankList = ",";
        var _QAList = ",";
        var _TypingList = ",";

        var _SingleCount = 0;
        var _MultiCount = 0;
        var _JudgeCount = 0;
        var _FillBlankCount = 0;
        var _QACount = 0;
        var _TypingCount = 0;
        var _TotalCount = 0;
        var _TotalScore = 0;
        //------------------选择题目，设置已选题目-------------//
        //单选题
        function IsChecked_Single(rowdata) {
            if (FindCheckedData(rowdata.T_ID, 1) == -1)
                return false;
            return true;
        }
        function OnCheckRow_Single(checked, data) {
            if (checked) AddCheckedData(data.T_ID, 1);
            else RemoveCheckedData(data.T_ID, 1);
            CalcuteScore();
        }
        //多选题
        function IsChecked_Multi(rowdata) {
            if (FindCheckedData(rowdata.T_ID, 2) == -1)
                return false;
            return true;
        }
        function OnCheckRow_Multi(checked, data) {
            if (checked) AddCheckedData(data.T_ID, 2);
            else RemoveCheckedData(data.T_ID, 2);
            CalcuteScore();
        }
        //判断题
        function IsChecked_Judge(rowdata) {
            if (FindCheckedData(rowdata.T_ID, 3) == -1)
                return false;
            return true;
        }
        function OnCheckRow_Judge(checked, data) {
            if (checked) AddCheckedData(data.T_ID, 3);
            else RemoveCheckedData(data.T_ID, 3);
            CalcuteScore();
        }
        //填空题
        function IsChecked_FillBlank(rowdata) {
            if (FindCheckedData(rowdata.T_ID, 4) == -1)
                return false;
            return true;
        }
        function OnCheckRow_FillBlank(checked, data) {
            if (checked) AddCheckedData(data.T_ID, 4);
            else RemoveCheckedData(data.T_ID, 4);
            CalcuteScore();
        }
        //问答题
        function IsChecked_QA(rowdata) {
            if (FindCheckedData(rowdata.T_ID, 5) == -1)
                return false;
            return true;
        }
        function OnCheckRow_QA(checked, data) {
            if (checked) AddCheckedData(data.T_ID, 5);
            else RemoveCheckedData(data.T_ID, 5);
            CalcuteScore();
        }
        //打字题
        function IsChecked_Typing(rowdata) {
            if (FindCheckedData(rowdata.T_ID, 6) == -1)
                return false;
            return true;
        }
        function OnCheckRow_Typing(checked, data) {
            if (checked) {
                if (_TypingCount > 0) {
                    showErrorTip("打字题最多只能选择1题！");
                }
                AddCheckedData(data.T_ID, 6);
            }
            else RemoveCheckedData(data.T_ID, 6);
            CalcuteScore();
        }

        function GetCheckedList(typeID) {
            if (typeID == 1)
                return _SingleList;
            else if (typeID == 2)
                return _MultiList;
            else if (typeID == 3)
                return _JudgeList;
            else if (typeID == 4)
                return _FillBlankList;
            else if (typeID == 5)
                return _QAList;
            else if (typeID == 6)
                return _TypingList;
        }

        function FindCheckedData(topicID, typeID) {
            var str = GetCheckedList(typeID);
            return str.indexOf("," + topicID + ",");
        }

        function SetCheckedList(checkedStr, typeID) {
            if (typeID == 1)
                 _SingleList=checkedStr;
            else if (typeID == 2)
                 _MultiList = checkedStr;
            else if (typeID == 3)
                _JudgeList = checkedStr;
            else if (typeID == 4)
                 _FillBlankList;
            else if (typeID == 5)
                _QAList = checkedStr;
            else if (typeID == 6)
                _TypingList = checkedStr;
        }

        function AddCheckedCount(typeID) {
            if (typeID == 1)
                _SingleCount++;
            else if (typeID == 2)
                _MultiCount++;
            else if (typeID == 3)
                _JudgeCount++;
            else if (typeID == 4)
                _FillBlankCount++;
            else if (typeID == 5)
                _QACount++;
            else if (typeID == 6)
                _TypingCount++;
        }

        function AddCheckedData(topicID, typeID) {
            var checkedList = GetCheckedList(typeID);
            var topicStr = "," + topicID + ",";
            //alert(topicStr);
            if (checkedList.indexOf(topicStr) == -1) {
                checkedList += topicStr;
                SetCheckedList(checkedList, typeID);
                AddCheckedCount(typeID);
            }
        }

        function DecCheckedCount(typeID) {
            if (typeID == 1)
                _SingleCount <= 1 ? _SingleCount = 0 : _SingleCount--;
            else if (typeID == 2)
                _MultiCount <= 1 ? _MultiCount = 0 : _MultiCount--;
            else if (typeID == 3)
                _JudgeCount <= 1 ? _JudgeCount = 0 : _JudgeCount--;
            else if (typeID == 4)
                _FillBlankCount <= 1 ? _FillBlankCount = 0 : _FillBlankCount--;
            else if (typeID == 5)
                _QACount <= 1 ? _QACount = 0 : _QACount--;
            else if (typeID == 6)
                _TypingCount <= 1 ? _TypingCount = 0 : _TypingCount--;
        }

        function RemoveCheckedData(topicID, typeID) {
            var checkedList = GetCheckedList(typeID);
            var topicStr = topicID + ",";
            if (checkedList.indexOf(topicStr) != -1) {
                checkedList = checkedList.replace(topicStr, "");
                SetCheckedList(checkedList, typeID);
                DecCheckedCount(typeID);
            }
        }
        //------------------------------------------------------------//

        function CalcuteScore() {
            $("#lblSingleCount").html(_SingleCount);
            var SingleScore = _SingleCount * parseInt($("#txtSingleScore").val());
            $("#lblSingleScore").html(SingleScore);
            //alert(_SingleCount);

            $("#lblMultiCount").html(_MultiCount);
            var MultiScore = _MultiCount * parseInt($("#txtMultiScore").val());
            $("#lblMultiScore").html(MultiScore);

            $("#lblJudgeCount").html(_JudgeCount);
            var JudgeScore = _JudgeCount * parseInt($("#txtJudgeScore").val());
            $("#lblJudgeScore").html(JudgeScore);

            $("#lblFillBlankCount").html(_FillBlankCount);
            var FillBlankScore = _FillBlankCount * parseInt($("#txtFillBlankScore").val());
            $("#lblMultiScore").html(MultiScore);

            $("#lblQACount").html(_QACount);
            var QAScore = _QACount * parseInt($("#txtQAScore").val());
            $("#lblQAScore").html(QAScore);

            $("#lblTypingCount").html(_TypingCount);
            var TypingScore = _TypingCount * parseInt($("#txtTypingScore").val());
            $("#lblTypingScore").html(TypingScore);

            _TotalCount = _SingleCount + _MultiCount + _JudgeCount + _FillBlankCount + _QACount + _TypingCount;
            _TotalScore = SingleScore + MultiScore + JudgeScore + FillBlankScore + QAScore + TypingScore;
            $("#lblTotalScore").html(_TotalScore);
            $("#lblTotalCount").html(_TotalCount);
        }

        function SaveData() {
            //验证数据
            if ($("#txtTitle").val() == "") {
                showErrorTip("请填写模型名称！");
                return;
            }
            if (_TotalCount == 0 || _TotalScore == 0) {
                showErrorTip("您没有选择考试题目，请选择！");
                return;
            }
            //打字题最多只能选择1题
            if (_TypingCount > 1) {
                showErrorTip("打字题最多只能选择1题！");
                return;
            }
            //
            var modelData = { id: 0, name: $("#txtTitle").val(), type: 1, status: 0, model_score: _TotalScore, has_QA: (_QACount > 0 ? true : false) };
            var modelDetList = new Array();
            if (_SingleCount > 0) {
                modelDetList.push({ id: 0, type: 1, topic: 0, topicIDStrs:_SingleList, score: parseInt($("#txtSingleScore").val()) });
            }
            if (_MultiCount > 0) {
                modelDetList.push({ id: 0, type: 2, topic: 0, topicIDStrs:_MultiList, score: parseInt($("#txtMultiScore").val()) });
            }
            if (_JudgeCount > 0) {
                modelDetList.push({ id: 0, type: 3, topic: 0, topicIDStrs:_JudgeList, score: parseInt($("#txtJudgeScore").val()) });
            }
            if (_FillBlankCount > 0) {
                modelDetList.push({ id: 0, type: 4, topic: 0, topicIDStrs:_FillBlankList, score: parseInt($("#txtFillBlankScore").val()) });
            }
            if (_QACount > 0) {
                modelDetList.push({ id: 0, type: 5, topic: 0, topicIDStrs:_QAList, score: parseInt($("#txtQAScore").val()) });
            }
            if (_TypingCount > 0) {
                modelDetList.push({ id: 0, type: 6, topic: 0, topicIDStrs:_TypingList, score: parseInt($("#txtTypingScore").val()) });
            }
            $("#divContent").mask("数据处理中，请稍候......");
            var areRoles = chkAreRoleIDs.length > 0 ? chkAreRoleIDs : areRoleID;
            var params = { modelData: JSON2.stringify(modelData), modelDetList: JSON2.stringify(modelDetList), areRoleIDs: areRoles, Rnd: Math.random() };
            $.getJSON("../WebServer/ModelManage.ashx?Action=AddManualModel", params, function (msgData) {
                $("#divContent").unmask();
                if (msgData.IsSuccess == 1) {
                    showAlertOk("保存成功");
                    closeRefresh(false, "");
                    if (pWind) pWind.load_grid();
                }
                else
                    showErrorTip(msgData.Msg);
            });
        }
    </script>
</head>
<body>
    <div id="divContent" style="padding:10px; width:798; height:548; border: 1px solid #35496A; background-color: #DFEAEA;">
        <input type="hidden" id="hfActivePage" value="1" />
        <table width="100%" cellpadding="1px" cellspacing="1px" id="tbModel" >
            <tr style="height:30px;">
                <td class="td" style="width: 10%;" align="right">
                    适用角色：
                </td>
                <td class="td">
                    <label id="lblAreRoleModel" style="color: Blue; font-weight: bold;">
                    </label>
                </td>
            </tr>
            <tr style="height:30px;">
                <td style="width: 10%;" align="right">
                    模型名称：
                </td>
                <td style="padding: 3px">
                    <input id="txtTitle" style="width: 90%" type="text" class="l-text" />
                </td>
            </tr>
            <tr>
                 <td style="width: 10%;height:30px;" align="right">
                    模型总分：
                </td>
                <td>
                    <label id="lblTotalScore" style="font-weight: bold;
                        color: Blue;">0</label>，共有题目<label id="lblTotalCount" style="font-weight: bold; color: Blue;">0</label>题
                </td>
            </tr>
        </table>
    <table cellpadding="0" cellspacing="0" width="95%">
        <tr style="height: 23px;">
            <td width="90px" id="Tab1" class="Tab1" align="center" onmouseover="TabMouseOver(this,1)"
                onmouseout="TabMouseOut(this,1)" onclick="TabClick(1, 'tableSingle');">
                单选题
            </td>
            <td width="90px" id="Tab2" class="Tab3" align="center" onmouseover="TabMouseOver(this,2)"
                onmouseout="TabMouseOut(this,2)" onclick="TabClick(2,'tableMulti');">
                多选题
            </td>
            <td width="90px" id="Tab3" class="Tab3" align="center" onmouseover="TabMouseOver(this,3)"
                onmouseout="TabMouseOut(this,3)" onclick="TabClick(3,'tableJudge');">
                判断题
            </td>
            <td width="90px" id="Tab4" class="Tab3" align="center" onmouseover="TabMouseOver(this,4)"
                onmouseout="TabMouseOut(this,4)" onclick="TabClick(4,'tableFillBlank');">
                填空题
            </td>
            <td width="90px" id="Tab5" class="Tab3" align="center" onmouseover="TabMouseOver(this,5)"
                onmouseout="TabMouseOut(this,5)" onclick="TabClick(5,'tableQA');">
                问答题
            </td>
            <td width="90px" id="Tab6" class="Tab3" align="center" onmouseover="TabMouseOver(this,6)"
                onmouseout="TabMouseOut(this,6)" onclick="TabClick(6,'tableTyping');">
                打字题
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
        <table cellpadding="1px" cellspacing="1px" id="tableSingle" type="TopicType"
            style="width:95%;background-color: #FEF9E7; border: 1px solid #76440C;">
            <tr>
                <td style="height:40px">
                    <div style="float:left">&nbsp;&nbsp;&nbsp;&nbsp;单项选择题&nbsp;共<label id="lblSingleCount" style="color: Red;
                        font-weight: bold">0</label>题，每题</div><div style="float:left"><input id="txtSingleScore" style="width: 50px;text-align:center" type="text" value="1"
                            class="l-text" onfocus="this.select();"/></div><div style="float:left">分,&nbsp;&nbsp;共<label id="lblSingleScore" style="color:Red;font-weight:bold;">0</label>分</div>
                </td>
            </tr>
            <tr><td><div id="divSingle"></div></td></tr>
        </table>
        <table width="95%" cellpadding="1px" cellspacing="1px" id="tableMulti" type="TopicType"
            style="background-color: #FEF9E7; border: 1px solid #76440C;display:none;">
            <tr>
                <td style="height:40px">
                    <div style="float:left">&nbsp;&nbsp;&nbsp;&nbsp;多项选择题&nbsp;共<label id="lblMultiCount" style="color: Red;
                        font-weight: bold">0</label>题，每题</div><div style="float:left"><input id="txtMultiScore" style="width: 50px;text-align:center" type="text" value="1"
                            class="l-text" onfocus="this.select();" /></div><div style="float:left">分,&nbsp;&nbsp;共<label id="lblMultiScore" style="color:Red;font-weight:bold;">0</label>分</div>
                </td>
            </tr>
            <tr><td><div id="divMulti"></div></td></tr>
        </table>
        <table width="95%" cellpadding="1px" cellspacing="1px" id="tableJudge" type="TopicType"
            style="background-color: #FEF9E7; border: 1px solid #76440C;display:none;">
            <tr>
                <td style="height:40px">
                    <div style="float:left">&nbsp;&nbsp;&nbsp;&nbsp;判断题&nbsp;共<label id="lblJudgeCount" style="color: Red;
                        font-weight: bold">0</label>题，每题</div><div style="float:left"><input id="txtJudgeScore" style="width: 50px;text-align:center" type="text" value="1"
                            class="l-text" onfocus="this.select();" /></div><div style="float:left">分,&nbsp;&nbsp;共<label id="lblJudgeScore" style="color:Red;font-weight:bold;">0</label>分</div>
                </td>
            </tr>
            <tr><td><div id="divJudge"></div></td></tr>
        </table>
        <table width="95%" cellpadding="1px" cellspacing="1px" id="tableFillBlank" type="TopicType"
            style="background-color: #FEF9E7; border: 1px solid #76440C;display:none;">
            <tr>
                <td style="height:40px">
                    <div style="float:left">&nbsp;&nbsp;&nbsp;&nbsp;填空题&nbsp;共<label id="lblFillBlankCount" style="color: Red;
                        font-weight: bold">0</label>题，每题</div><div style="float:left"><input id="txtFillBlankScore" style="width: 50px;text-align:center" type="text" value="1"
                            class="l-text" onfocus="this.select();" /></div><div style="float:left">分,&nbsp;&nbsp;共<label id="lblFillBlankScore" style="color:Red;font-weight:bold;">0</label>分</div>
                </td>
            </tr>
            <tr><td><div id="divFillBlank"></div></td></tr>
        </table>
        <table width="95%" cellpadding="1px" cellspacing="1px" id="tableQA" type="TopicType"
            style="background-color: #FEF9E7; border: 1px solid #76440C;display:none;">
            <tr>
                <td style="height:40px">
                    <div style="float:left">&nbsp;&nbsp;&nbsp;&nbsp;问答题&nbsp;共<label id="lblQACount" style="color: Red;
                        font-weight: bold">0</label>题，每题</div><div style="float:left"><input id="txtQAScore" style="width: 50px;text-align:center" type="text" value="1"
                            class="l-text" onfocus="this.select();" /></div><div style="float:left">分,&nbsp;&nbsp;共<label id="lblQAScore" style="color:Red;font-weight:bold;">0</label>分</div>
                </td>
            </tr>
            <tr><td><div id="divQA"></div></td></tr>
        </table>
        <table width="95%" cellpadding="1px" cellspacing="1px" id="tableTyping" type="TopicType"
            style="background-color: #FEF9E7; border: 1px solid #76440C;display:none;">
            <tr>
                <td style="height:40px">
                    <div style="float:left">&nbsp;&nbsp;&nbsp;&nbsp;打字题&nbsp;共<label id="lblTypingCount" style="color: Red;
                        font-weight: bold">0</label>题，每题</div><div style="float:left"><input id="txtTypingScore" style="width: 50px;text-align:center" type="text" value="1"
                            class="l-text" onfocus="this.select();" /></div><div style="float:left">分,&nbsp;&nbsp;共<label id="lblTypingScore" style="color:Red;font-weight:bold;">0</label>分</div>
                </td>
            </tr>
            <tr><td><div id="divTyping"></div></td></tr>
        </table>
        <table width="100%" cellpadding="0" cellspacing="0" style="height:100%;">
            <tr style="height:30px">
                <td  align="center">
                    <input type="button" id="btnPost" value="保存" onclick="SaveData();" class="l-button" style="display:inline" />
                    <input type="button" id="btnClose" value="关闭"class="l-button" style="display:inline" />
                </td>
            </tr>    
        </table>
    </div>
</body>
</html>
